<?php // выводим docype 
// <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">  ?>
<?php echo $this->doctype(); ?>
<html>
     <head>
		  <?php echo $this->headMeta()->appendHttpEquiv('Content-Type', 'text/html;charset=utf-8'); ?>
        <?php // выводим тайтл, который генерировать будем в каждом контроллере и экшене ?>
        <?php echo $this->headTitle(); ?>
        <?php // самое интересное, стили, скрипты и сгенированный javascript выводятся одной строкой ?>
        <?php echo $this->jQuery(); ?>
        <?php $this->headScript()->appendFile('/js/global.js')
                ->headScript()->appendFile('/js/forms.js')
                ->headScript()->appendFile('/js/jquery.colorbox-min.js'); ?>
        <?php echo $this->headScript(); ?>
         
	<?php $this->headLink()->appendStylesheet($this->baseUrl.'/css/layout.css')
				  ->headLink()->appendStylesheet($this->baseUrl.'/css/colorbox.css')
              ->headLink()->appendStylesheet($this->baseUrl.'/css/forms.css'); ?>
        <?php echo $this->headLink(); ?>
     </head>
     <body>
		  
		<div>
			<? if ( !empty ( $this->authOK ) ) : ?>
				<a href="/auth/logout">Logout</a>
				&nbsp;&nbsp;&nbsp;&nbsp;
				<a href="/index/page1">page1</a>
				&nbsp;&nbsp;&nbsp;&nbsp;
				<a href="/index/page2">page2</a>
				&nbsp;&nbsp;&nbsp;&nbsp;
				(<?= $this->authOK; ?>)
			<? else : ?>
				<a href="/auth/login">Login</a>
			<? endif; ?>
				&nbsp;&nbsp;&nbsp;&nbsp;
				<a href="/">home</a><br/>
			<b>Access: </b><?= $this->aclStatus; ?><br/>
		</div>
		<div style="border: 2px solod red;">
			<?= $this->partial('searchForm.phtml'); ?>
		</div>
		<div class="layout-center"> 
			<div class="layout-center-menu"> <?= $this->partial('catalog/tree.phtml', array( 'catalogTree' => $this->mainMenu() ) ) ?></div>
			<div class="layout-center-content"><?php echo $this->layout()->content; ?></div>
		</div>

    </body>
</html>